package easy.trace.agent.support;


import easy.trace.agent.Tracer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class TracerStarter implements ApplicationListener<ContextRefreshedEvent> {
    private static final Logger log = LoggerFactory.getLogger(TracerStarter.class);

    public TracerStarter() {
    }

    public void onApplicationEvent(ContextRefreshedEvent event) {
        log.info("tracer config context is starting,config file path is:");
        log.info("tracer first step");
        Tracer.startTraceWork();
        log.info("tracer start +");
    }
}

